<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      GLEW-2.1.0
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;25.&nbsp;X Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="gdk-pixbuf.html" title=
          "gdk-pixbuf-2.40.0">Prev</a>
          <p>
            gdk-pixbuf-2.40.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="glu.html" title="GLU-9.0.1">Next</a>
          <p>
            GLU-9.0.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="lib.html" title=
          "Chapter&nbsp;25.&nbsp;X Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="glew" name="glew"></a>GLEW-2.1.0
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to GLEW
        </h2>
        <p>
          <span class="application">GLEW</span> is the OpenGL Extension
          Wrangler Library.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://downloads.sourceforge.net/glew/glew-2.1.0.tgz">https://downloads.sourceforge.net/glew/glew-2.1.0.tgz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: b2ab12331033ddfaa50dc39345343980
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 747 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 16 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          glew Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="mesa.html" title=
          "Mesa-20.0.2">Mesa-20.0.2</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/GLEW">http://wiki.linuxfromscratch.org/blfs/wiki/GLEW</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of GLEW
        </h2>
        <p>
          Install <span class="application">GLEW</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">sed -i 's%lib64%lib%g' config/Makefile.linux &amp;&amp;
sed -i -e '/glew.lib.static:/d' \
       -e '/0644 .*STATIC/d'    \
       -e 's/glew.lib.static//' Makefile     &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install.all</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>sed -i 's%lib64%lib%g'
          ...</strong></span>: This ensures that the library is installed in
          <code class="filename">/usr/lib</code>.
        </p>
        <p>
          <span class="command"><strong>sed -i -e '/glew.lib.static:/d'
          ...</strong></span>: This suppresses the static library.
        </p>
        <p>
          <span class="command"><strong>make install.all</strong></span>:
          This installs the programs as well as the library.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">glewinfo, visualinfo.</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libGLEW.so.</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/usr/include/GL.</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="glewinfo" name="glewinfo"></a><span class=
                    "term"><span class=
                    "command"><strong>glewinfo</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    provides information about the supported extensions.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="visualinfo" name="visualinfo"></a><span class=
                    "term"><span class=
                    "command"><strong>visualinfo</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is an extended version of glxinfo.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libGLEW.so" name="libGLEW.so"></a><span class=
                    "term"><code class="filename">libGLEW.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    provides functions to access OpenGL extensions.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-18 16:50:03 -0600
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="gdk-pixbuf.html" title=
          "gdk-pixbuf-2.40.0">Prev</a>
          <p>
            gdk-pixbuf-2.40.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="glu.html" title="GLU-9.0.1">Next</a>
          <p>
            GLU-9.0.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="lib.html" title=
          "Chapter&nbsp;25.&nbsp;X Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
